#!/bin/bash
#逐字节比较a b两个文件是否相同
if cmp a b &> /dev/null
then echo "Files a and b are identical."
else echo "Files a and b differ."
fi

if grep -q Bash file
then echo "File contains at least one occurrence of Bash."
fi

word=linux
letter_sequence=inu
if echo "$word" | grep -q "$letter_sequence"
then
 echo "$letter_sequence found in $word"
else
 echo "$letter_sequence not found in $word"
fi
